package org.springblade.modules.repair.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.repair.entity.BuildingElevatorTemplateRele;
import org.springblade.modules.repair.vo.BuildingElevatorTemplateReleTreeVO;

import java.util.List;

public interface BuildingElevatorTemplateReleMapper extends BaseMapper<BuildingElevatorTemplateRele> {

    List<BuildingElevatorTemplateRele> lazyList(@Param("buildingId") Long buildingId, @Param("parentId") Long parentId);

	/**
	 * 树形结构
	 * @param buildingId
	 * @return
	 */
	List<BuildingElevatorTemplateReleTreeVO> tree(@Param("buildingId") Long buildingId);
}
